﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ASPNETPerformance.App_BusinessLogic.BasePages;
using ASPNETPerformance.App_BusinessLogic.Helpers;
using ASPNETPerformance.App_BusinessLogic.SEO;
using ASPNETPerformance.App_BusinessLogic.Utils;

namespace ASPNETPerformance._07_Cdn {
    public partial class CdnJquery : BasePage {
        protected void Page_Load( object sender, EventArgs e ) {

        }

        protected override void OnPreRender( EventArgs e ) {
            BindCss();

            if ( CommonHelper.GetCookieBool( "IsCdnJquery" ) ) {
                SEOHelper.AddCdnJqueryInclude( this );
                SEOHelper.AddCdnJqueryInclude( this, false  );
            }
            else {
                SEOHelper.AddJavaScriptInclude( this, "~/_assets/js/jquery-1.4.4.min.js" );
            }

            SEOHelper.AddJavaScriptInclude( this, "~/_assets/js/public.js" );
        }
    }
}